CC		= gcc
CXX 	= g++
CFLAGS	= 

TARGET	= app
SRC		= main.c
OBJ_DIR = debug

$(TARGET): $(SRC) $(OBJ_DIR)
	$(CC) $< $(CFLAGS) -o $(OBJ_DIR)/$@

$(OBJ_DIR): 
	if [ ! -d $(OBJ_DIR) ]; then mkdir -p $(OBJ_DIR); fi;

.PHONY : clean
clean:
	rm -rf debug
	rm -rf app
